import getProp from './prop'

/**
 * @export 获取group类型表单属性
 * @param {*} { fields }
 * @return {*} prop
 */
export default function getGroupProp ({ fields }) {
  const { groups, setting } = fields
  const { open } = setting
  const prop = getProp({ fields })

  return {
    ...prop,
    groups,
    open: !!open,
  }
}
